type go/types.atPos

32 uses

	go/types (current package)
		call.go#L43: 		instErrPos = atPos(pos)
		call.go#L114: 		targs = check.infer(atPos(pos), tparams, targs, params2.(*Tuple), args, reverse, err)
		call.go#L164: 			check.softErrorf(atPos(pos), InvalidTypeArg, "%s", err)
		call.go#L168: 	}).describef(atPos(pos), "verify instantiation")
		call.go#L290: 			check.verifyVersionf(atPos(ix.lbrack), go1_18, "function instantiation")
		call.go#L527: 			at = atPos(call.Rparen) // report at closing )
		check.go#L21: var noposn = atPos(nopos)
		check.go#L365: 			check.errorf(atPos(file.Package), MismatchedPkgName, "package %s; expected package %s", name, pkg.name)
		const.go#L29: 		check.error(atPos(opPos), InvalidConstVal, "constant result is not representable")
		const.go#L49: 		check.errorf(atPos(opPos), InvalidConstVal, "constant %soverflow", op)
		decl.go#L471: 			check.errpos = atPos(obj.pos)
		decl.go#L569: 		if !versionErr && !check.verifyVersionf(atPos(tdecl.Assign), go1_9, "type alias") {
		errors.go#L261: type atPos token.Pos
		errors.go#L263: func (s atPos) Pos() token.Pos {
		instantiate.go#L204: 		check.error(atPos(pos), WrongTypeArgCount, msg)
		mono.go#L157: 			err.addf(atPos(edge.pos), "%s implicitly parameterized by %s", obj.Name(), TypeString(edge.typ, qf)) // secondary error, \t indented
		mono.go#L159: 			err.addf(atPos(edge.pos), "%s instantiated as %s", obj.Name(), TypeString(edge.typ, qf)) // secondary error, \t indented
		stmt.go#L50: 		check.error(atPos(body.Rbrace), MissingReturn, "missing return")
		stmt.go#L264: 					err.addf(atPos(vt.pos), "previous case")
		stmt.go#L536: 				check.errorf(atPos(s.TokPos), InvalidSyntaxTree, "unknown assignment operation %s", s.Tok)
		struct.go#L203: 		err.addf(atPos(pos), "%s redeclared", obj.Name())
		typeset.go#L231: 				err.addf(atPos(pos), "duplicate method %s", m.name)
		typeset.go#L232: 				err.addf(atPos(mpos[other.(*Func)]), "other declaration of method %s", m.name)
		typeset.go#L245: 						err.addf(atPos(pos), "duplicate method %s", m.name)
		typeset.go#L246: 						err.addf(atPos(mpos[other.(*Func)]), "other declaration of method %s", m.name)
		typeset.go#L249: 				}).describef(atPos(pos), "duplicate method check for %s", m.name)
		typeset.go#L276: 			if pos.IsValid() && check != nil && check.isImportedConstraint(typ) && !check.verifyVersionf(atPos(pos), go1_18, "embedding constraint interface %s", typ) {
		typeset.go#L285: 			if pos.IsValid() && check != nil && !check.verifyVersionf(atPos(pos), go1_18, "embedding interface element %s", u) {
		typeset.go#L299: 			if pos.IsValid() && check != nil && !check.verifyVersionf(atPos(pos), go1_18, "embedding non-interface type %s", typ) {
		typeset.go#L406: 				check.errorf(atPos(pos), InvalidUnion, "cannot handle more than %d union terms (implementation limitation)", maxTermCount)
		typexpr.go#L495: 				check.softErrorf(atPos(pos), InvalidTypeArg, "%v", err)
		util.go#L34: func dddErrPos(call *ast.CallExpr) positioner { return atPos(call.Ellipsis) }